package com.example.abc.service;

import com.example.abc.common.DataTableRequest;
import com.example.abc.common.DataTableResponse;
import com.example.abc.dto.account.AuthorityTreeDto;
import com.example.abc.entity.Account;
import com.example.abc.entity.Authority;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

import com.example.abc.repository.AuthorityDao;

@Service
public class AuthorityService {

    @Resource
    private AuthorityDao authorityDao;

    public int insert(Authority pojo) {
        return authorityDao.insert(pojo);
    }

    public int insertSelective(Authority pojo) {
        return authorityDao.insertSelective(pojo);
    }

    public int insertList(List<Authority> pojos) {
        return authorityDao.insertList(pojos);
    }

    public int update(Authority pojo) {
        return authorityDao.update(pojo);
    }

    public List<Authority> getAll() {
        return authorityDao.getAll();
    }

    public List<AuthorityTreeDto> getAllAuthTree() {
        return authorityDao.getAllAuthTree();
    }

}
